<html><head><title>ExamineFTPDirectory</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ExamineFTPDirectory()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>ExamineFTPDirectory</b></font>(#Ftp)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Starts to examine the content of the current FTP directory. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Ftp</i></td>
<td width="90%"> 
The connection to use. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns nonzero if the operation succeeded or zero if it failed. 

</blockquote><p><b>Remarks</b></p><blockquote>

For now, only Unix-like servers are supported for directory listing. The FTP protocol doesn't specify 
how a directory listing has to be returned, so every server has its own way to returns the directory information. 
Fortunately, most of the world servers are running under Unix/Linux and uses the same way to return the 
data. That said, there is no warranty that the listing works on every servers. This command will be updated 
on demand to automatically handle more servers type. If the server isn't supported, please use <a href="ftpdirectoryentryraw.html">FTPDirectoryEntryRaw()</a> 
to get back the raw information about each entry. 
@linebreaks
@linebreaks
The functions 
<a href="nextftpdirectoryentry.html">NextFTPDirectoryEntry()</a>, <a href="ftpdirectoryentryname.html">FTPDirectoryEntryName()</a>, <a href="ftpdirectoryentrytype.html">FTPDirectoryEntryType()</a>, 
<a href="ftpdirectoryentryattributes.html">FTPDirectoryEntryAttributes()</a>, <a href="ftpdirectoryentrydate.html">FTPDirectoryEntryDate()</a> and <a href="ftpdirectoryentrysize.html">FTPDirectoryEntrySize()</a> 
can be used to read the directory entries. To change the current directory, use <a href="setftpdirectory.html">SetFTPDirectory()</a>. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2"><font color="#006666">  InitNetwork</font>()
  
  <b><font color="#006666">If</font></b> <font color="#006666">OpenFTP</font>(0, "ftp.free.fr", "anonymous", "")
    <b><font color="#006666">If</font></b> <font color="#006666">ExamineFTPDirectory</font>(0)
      <b><font color="#006666">While</font></b> <font color="#006666">NextFTPDirectoryEntry</font>(0)
        <b><font color="#006666">Debug</font></b> <font color="#006666">FTPDirectoryEntryName</font>(0)
      <b><font color="#006666">Wend</font></b>
    <b><font color="#006666">EndIf</font></b>
  <b><font color="#006666">Else</font></b>
    <b><font color="#006666">Debug</font></b> "Can't connect to ftp.free.fr"
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="nextftpdirectoryentry.html">NextFTPDirectoryEntry()</a>, 
<a href="finishftpdirectory.html">FinishFTPDirectory()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=deleteftpfile.html>DeleteFTPFile()</a> - <a href=index.html>Ftp Index</a> - <a href=ftpdirectoryentryattributes.html>FTPDirectoryEntryAttributes()</a> ->

</body></html>